import { axios } from '~/plugins/axios';

// 用户列表
export const getList = (params?: any) => axios({
  method: 'get',
  url: '/UserController/list',
  params,
}) as Promise<any>;

// 用户列表 - 删除
export const deleteItem = (params?: any) => axios({
  method: 'delete',
  url: `/UserController/${params as string}`,
}) as Promise<any>;

// 用户重置密码
export const handleResetPassword = (params?: any) => axios({
  method: 'get',
  url: `/UserController/updatePassword?password=${params.password as string}&id=${params.id as string}`,
}) as Promise<any>;
